package com.zb_study.Homework02;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class homework02 {
    public static void main(String[] args) throws IOException {


        String filePath = "e:\\story.txt";
        String line = "";
        int lineNum = 0;
        BufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));

        while ((line = bufferedReader.readLine()) != null) {
            System.out.println(++lineNum + line);
        }
        bufferedReader.close();
    }
}
